package com.mathdroid.model.abilities.specs.sniper;

import com.mathdroid.model.abilities.Ability;
import com.mathdroid.model.enums.EDmgType;

public final class PlasmaProbe extends Ability {

	/**
	 * Generated UID.
	 */
	private static final long serialVersionUID = -3454468687670536522L;

	public PlasmaProbe() {
		this.setName("Plasma Probe");
		this.setRequiredTalent("Plasma Probe");
		this.setIconName("plasmaprobe");
		this.setResource("Energy");
		this.setCost(20d);
		this.setCooldownMs(18000d);
		this.setPeriodicDamageType(EDmgType.ELEMENTAL);
		
		this.setStandardHealthPercentMax(0.064);
		this.setStandardHealthPercentMin(0.024);
		this.setCoefficient(0.44);
		
		this.setPeriodicInterval(3000d);
		
		this.setTrainableLevel(40);
	}
	
	@Override
	public String getDescription() {
		return "Deploys a plasma drone over the target area that deals " +
			this.getMinPeriodic() + " - " + this.getMaxPeriodic() 
			+ " elemental damage over 18 seconds to up to " +
			"3 enemies within 5 meters.";
	}

	@Override
	public double getMinPeriodic() {
		return
			this.getCoefficient() 
			* this.getCharStats().getTotalBonusDamageTechForce()
		
			+ this.getStandardHealthPercentMin() 
			* this.getStdDmg();
	}

	@Override
	public double getMaxPeriodic() {
		return
			this.getCoefficient() 
			* this.getCharStats().getTotalBonusDamageTechForce()
		
			+ this.getStandardHealthPercentMax() 
			* this.getStdDmg();
	}

	@Override
	public double getMinDirect() {
		return 0d;
	}

	@Override
	public double getMaxDirect() {
		return 0d;
	}
}
